// PicChoice.cpp : implementation file
//

#include "stdafx.h"
#include "InfoHide.h"
#include "PicChoice.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// PicChoice dialog


PicChoice::PicChoice(CWnd* pParent /*=NULL*/)
	: CDialog(PicChoice::IDD, pParent)
{
	//{{AFX_DATA_INIT(PicChoice)
	m_picinfo = _T("");
	//}}AFX_DATA_INIT
}


void PicChoice::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(PicChoice)
	DDX_Text(pDX, IDC_PicInfo, m_picinfo);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(PicChoice, CDialog)
	//{{AFX_MSG_MAP(PicChoice)
	ON_BN_CLICKED(IDC_PicPath, OnPicPath)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// PicChoice message handlers

void PicChoice::OnPicPath() 
{
	// TODO: Add your control notification handler code here
	CFileDialog dlg(TRUE, "*.bmp", NULL, OFN_HIDEREADONLY, "Bitmap File(*.bmp)|*.bmp|", this);
	if (IDOK == dlg.DoModal())
	{
		m_picinfo=dlg.GetPathName();
	}
	SetDlgItemText(IDC_PicInfo,m_picinfo);
}
